package com.run.merchant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.run.merchant.mapper.RunCommInfoMapper;
import com.run.merchant.domain.RunCommInfo;
import com.run.merchant.service.IRunCommInfoService;

/**
 * 代取员提成信息Service业务层处理
 * 
 * @author run
 * @date 2025-05-19
 */
@Service
public class RunCommInfoServiceImpl implements IRunCommInfoService 
{
    @Autowired
    private RunCommInfoMapper runCommInfoMapper;

    /**
     * 查询代取员提成信息
     * 
     * @param commId 代取员提成信息主键
     * @return 代取员提成信息
     */
    @Override
    public RunCommInfo selectRunCommInfoByCommId(Long commId)
    {
        return runCommInfoMapper.selectRunCommInfoByCommId(commId);
    }

    /**
     * 查询代取员提成信息列表
     * 
     * @param runCommInfo 代取员提成信息
     * @return 代取员提成信息
     */
    @Override
    public List<RunCommInfo> selectRunCommInfoList(RunCommInfo runCommInfo)
    {
        return runCommInfoMapper.selectRunCommInfoList(runCommInfo);
    }

    /**
     * 新增代取员提成信息
     * 
     * @param runCommInfo 代取员提成信息
     * @return 结果
     */
    @Override
    public int insertRunCommInfo(RunCommInfo runCommInfo)
    {
        return runCommInfoMapper.insertRunCommInfo(runCommInfo);
    }

    /**
     * 修改代取员提成信息
     * 
     * @param runCommInfo 代取员提成信息
     * @return 结果
     */
    @Override
    public int updateRunCommInfo(RunCommInfo runCommInfo)
    {
        return runCommInfoMapper.updateRunCommInfo(runCommInfo);
    }

    /**
     * 批量删除代取员提成信息
     * 
     * @param commIds 需要删除的代取员提成信息主键
     * @return 结果
     */
    @Override
    public int deleteRunCommInfoByCommIds(Long[] commIds)
    {
        return runCommInfoMapper.deleteRunCommInfoByCommIds(commIds);
    }

    /**
     * 删除代取员提成信息信息
     * 
     * @param commId 代取员提成信息主键
     * @return 结果
     */
    @Override
    public int deleteRunCommInfoByCommId(Long commId)
    {
        return runCommInfoMapper.deleteRunCommInfoByCommId(commId);
    }
}
